package com.ruoyi.erp.util;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "erp")
public class api {
    private String host;
    private String AddFa = "/assetinfo/add?app_secret=2ee4da4658e88883";
    private String DelFa = "/handle/callback?app_secret=2ee4da4658e88883";
    private String UpFa = "/change/callback?app_secret=2ee4da4658e88883";

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public String getAddFa() {
        return getHost()+AddFa;
    }

    public void setAddFa(String addFa) {
        AddFa = addFa;
    }

    public String getUpFa() {
        return getHost()+UpFa;
    }

    public void setUpFa(String upFa) {
        UpFa = upFa;
    }

    public String getDelFa() {
        return getHost()+DelFa;
    }

    public void setDelFa(String delFa) {
        DelFa = delFa;
    }
}
